home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / BST_SystemDocs.lha / BeastV1 / Docs / ROBO_Docs / Methods.doc < prev    next >
Encoding:
Text File  |  1996-09-03  |  9.7 KB  |  455 lines

  1. TABLE OF CONTENTS
  2. 0001 BFS/OBM_BFSINPUT
  3. 0002 BFS/OBM_BFSOUTPUT
  4. 0003 BeaMM/OBM_BEAMMINPUT
  5. 0004 BeaMM/OBM_BEAMMOUTPUT
  6. 0005 BeaVis/OBM_BVSINPUT
  7. 0006 BeaVis/OBM_BVSOUTPUT
  8. 0007 BeaVis/OBM_IDCMPINPUT
  9. 0008 BeaVis/OBM_IDCMPOUTPUT
  10. 0009 Beast/OBM_ALLOCMEM
  11. 0010 Beast/OBM_CONTENTSINPUT
  12. 0011 Beast/OBM_CONTENTSOUTPUT
  13. 0012 Beast/OBM_DISPOSE
  14. 0013 Beast/OBM_FREEMEM
  15. 0014 Beast/OBM_GETATTR
  16. 0015 Beast/OBM_INIT
  17. 0016 Beast/OBM_INPUT
  18. 0017 Beast/OBM_INPUT2
  19. 0018 Beast/OBM_INPUT3
  20. 0019 Beast/OBM_INPUT4
  21. 0020 Beast/OBM_LOCKMEM
  22. 0021 Beast/OBM_OUTPUT
  23. 0022 Beast/OBM_OUTPUT2
  24. 0023 Beast/OBM_OUTPUT3
  25. 0024 Beast/OBM_OUTPUT4
  26. 0025 Beast/OBM_SETATTR
  27. 0026 Beast/OBM_SYSINPUT
  28. 0027 Beast/OBM_SYSOUTPUT
  29. 0028 Beast/OBM_UNLOCKMEM
  30. 0029 Beast/OBM_UPDATE
  31. 0030 Beast/OBM_local0
  32. 0031 Beast/OBM_local0
  33. 0032 Beast/OBM_local1
  34. 0033 Beast/OBM_local2
  35. 0034 BeastSystem/OBM_ADDEVENT
  36. 0035 BeastSystem/OBM_EVENTLOOP
  37. 0036 BeastSystem/OBM_FOREACH
  38. 0037 BeastSystem/OBM_REMEVENT
  39. 0038 MethodFlags/MTHF_BREAK
  40. 0039 MethodFlags/MTHF_DOCHILDREN
  41. 0040 MethodFlags/MTHF_DOPARENTS
  42. 0041 MethodFlags/MTHF_ERROR
  43. 0042 MethodFlags/MTHF_FATALERROR
  44. 0043 MethodFlags/MTHF_PASSTOCHILD
  45. 0044 MethodFlags/MTH_B52_bits
  46. 0045 Methods/Methods
  47. 0046 Methods/OBM_bits_FAMILY
  48. BFS/OBM_BFSINPUT
  49.  
  50. NAME
  51.       OBM_BFSINPUT -- (under construction)
  52.  
  53. BFS/OBM_BFSOUTPUT
  54.  
  55. NAME
  56.       OBM_BFSOUTPUT -- (under construction)
  57.  
  58. BeaMM/OBM_BEAMMINPUT
  59.  
  60. NAME
  61.       OBM_BEAMMINPUT -- (under construction)
  62.  
  63. BeaMM/OBM_BEAMMOUTPUT
  64.  
  65. NAME
  66.       OBM_BEAMMOUTPUT -- (under construction)
  67.  
  68. BeaVis/OBM_BVSINPUT
  69.  
  70. NAME
  71.       OBM_BVSINPUT -- (under construction)
  72.  
  73. BeaVis/OBM_BVSOUTPUT
  74.  
  75. NAME
  76.       OBM_BVSOUTPUT -- (under construction)
  77.  
  78. BeaVis/OBM_IDCMPINPUT
  79.  
  80. NAME
  81.       OBM_IDCMPINPUT -- IDCMP input method. (under construction)
  82.  
  83. BeaVis/OBM_IDCMPOUTPUT
  84.  
  85. NAME
  86.       OBM_IDCMPOUTPUT -- IDCMP output method. (under construction)
  87.  
  88. Beast/OBM_ALLOCMEM
  89.  
  90. NAME
  91.       OBM_ALLOCMEM -- Allocate memory. (V1 Bravo)
  92.  
  93. FUNCTION
  94.       See mth_AllocMem_BeastLibrary for the general behaviour.
  95.  
  96. Beast/OBM_CONTENTSINPUT
  97.  
  98. NAME
  99.       OBM_CONTENTSINPUT -- (V1 Charlie)
  100.  
  101. FUNCTION
  102.       The object is 'fed' with a BTA_MemBlock and BTA_MemSize tag.
  103.       The object will 'copy' the contents (BTA_MemBlock) to it's
  104.       contents.
  105.  
  106. SEE ALSO
  107.       OBM_CONTENTSOUTPUT
  108.  
  109. Beast/OBM_CONTENTSOUTPUT
  110.  
  111. NAME
  112.       OBM_CONTENTSOUTPUT -- (V1 Charlie)
  113.  
  114. FUNCTION
  115.       The object will 'output' using the OBJ_ToOutput function
  116.       it's contents. The taglist must contain the BTA_MemBlock
  117.       and BTA_MemSize tags.
  118.  
  119. INPUTS
  120.       TagList which may contain the following tags.
  121.         BTA_MemBlock -
  122.             Pointer to which the data must be written.
  123.         BTA_Pointer - retrieved from this method or NULL.
  124.         BTA_Flags -
  125.           CONTENTSOUTPUT_FULL
  126.             Complete dump in one big block.
  127.           CONTENTSOUTPUT_FIXED
  128.             Dump a block size BTA_MemSize.
  129.           CONTENTSOUTPUT_UNTILBYTE
  130.             Dump block until BTA_ByteNumber is reached.
  131.           CONTENTSOUTPUT_UNTILWORD
  132.             Dump block until BTA_WordNumber is reached
  133.           CONTENTSOUTPUT_UNTILLONG
  134.             Dump block until BTA_LongNumber is reached
  135.           CONTENTSOUTPUT_END
  136.             End the transfer.
  137.         BTA_MemSize -
  138.         BTA_ByteNumber -
  139.         BTA_WordNumber -
  140.         BTA_LongNumber -
  141.  
  142.  
  143. RESULT
  144.       OBJ_ToOutput with a TagList containing at least the following tags.
  145.         BTA_MemBlock
  146.         BTA_MemSize
  147.         BTA_Pointer - this tag must be used again when the method
  148.                   is called again.
  149.         
  150.  
  151. SEE ALSO
  152.       OBM_CONTENTSINPUT
  153.  
  154. Beast/OBM_DISPOSE
  155.  
  156. NAME
  157.       OBM_DISPOSE -- General dispose method. (V1 Alpha)
  158.  
  159. FUNCTION
  160.       This method must free all allocated resources of the object.
  161.  
  162. Beast/OBM_FREEMEM
  163.  
  164. NAME
  165.       OBM_FREEMEM -- Free memory. (V1 Bravo)
  166.  
  167. FUNCTION
  168.       See mth_FreeMem_BeastLibrary for the general behaviour.
  169.  
  170. Beast/OBM_GETATTR
  171.  
  172. NAME
  173.       OBM_GETATTR -- General method to get instance fields. (V1 Alpha)
  174.  
  175. FUNCTION
  176.       OBM_INIT, OBM_SETATTR and OBM_GETATTR are all using the BTA_NumberOf
  177.       tag to find out how many tags must be processed. This tag however is
  178.       not required, but the    methods will run more efficient with it.
  179.       The BST_FillAttrTagList also use the BTA_NumberOf tag.
  180.  
  181. Beast/OBM_INIT
  182.  
  183. NAME
  184.       OBM_INIT -- General init method. (V1 Alpha)
  185.  
  186. FUNCTION
  187.       TagList requirements equals the OBM_SETATTR method.
  188.  
  189. Beast/OBM_INPUT
  190.  
  191. NAME
  192.       OBM_INPUT -- General input method 0. (V1 Alpha)
  193.  
  194. Beast/OBM_INPUT2
  195.  
  196. NAME
  197.       OBM_INPUT2 -- General input method 2. (V1 Alpha)
  198.  
  199. Beast/OBM_INPUT3
  200.  
  201. NAME
  202.       OBM_INPUT3 -- General input method 3. (V1 Alpha)
  203.  
  204. Beast/OBM_INPUT4
  205.  
  206. NAME
  207.       OBM_INPUT4 -- General input method 4. (V1 Alpha)
  208.  
  209. Beast/OBM_LOCKMEM
  210.  
  211. NAME
  212.       OBM_LOCKMEM -- Lock memory. (V1 Bravo)
  213.  
  214. FUNCTION
  215.       See mth_LockMem_BeastLibrary for the general behaviour.
  216.  
  217. Beast/OBM_OUTPUT
  218.  
  219. NAME
  220.       OBM_OUTPUT -- General output method 0. (V1 Alpha)
  221.  
  222. Beast/OBM_OUTPUT2
  223.  
  224. NAME
  225.       OBM_OUTPUT2 -- General output method 2. (V1 Alpha)
  226.  
  227. Beast/OBM_OUTPUT3
  228.  
  229. NAME
  230.       OBM_OUTPUT3 -- General output method 3. (V1 Alpha)
  231.  
  232. Beast/OBM_OUTPUT4
  233.  
  234. NAME
  235.       OBM_OUTPUT4 -- General output method 4. (V1 Alpha)
  236.  
  237. Beast/OBM_SETATTR
  238.  
  239. NAME
  240.       OBM_SETATTR -- General method to set instance fields. (V1 Alpha)
  241.  
  242. FUNCTION
  243.       This method must always been used to set the attributes of an object.
  244.       See OBM_GETATTR for more information.
  245.  
  246. Beast/OBM_SYSINPUT
  247.  
  248. NAME
  249.       OBM_SYSINPUT -- BEAST system input, do not use this method. (V1 Alpha)
  250.  
  251. Beast/OBM_SYSOUTPUT
  252.  
  253. NAME
  254.       OBM_SYSOUTPUT -- BEAST system output, do not use this method. (V1 Alpha)
  255.  
  256. Beast/OBM_UNLOCKMEM
  257.  
  258. NAME
  259.       OBM_UNLOCKMEM -- Unlock memory. (V1 Bravo)
  260.  
  261. FUNCTION
  262.       See mth_UnlockMem_BeastLibrary for the general behaviour.
  263.  
  264. Beast/OBM_UPDATE
  265.  
  266. NAME
  267.       OBM_UPDATE -- General method to update an object. (under construction)
  268.  
  269. Beast/OBM_local0
  270.  
  271. NAME
  272.       OBM_local0 -- Local method slot 0. (V1 Alpha)
  273.  
  274.  
  275. FUNCTION
  276.       Defines a slot OBM_local0 .. OBM_local0 + 0x40
  277.  
  278.  
  279. Beast/OBM_local0
  280.  
  281. NAME
  282.       OBM_local3 -- Local method slot 3. (V1 Alpha)
  283.  
  284.  
  285. FUNCTION
  286.       Defines a slot OBM_local3 .. OBM_local3 + 0x1000000
  287.  
  288.  
  289. Beast/OBM_local1
  290.  
  291. NAME
  292.       OBM_local1 -- Local method slot 1. (V1 Alpha)
  293.  
  294.  
  295. FUNCTION
  296.       Defines a slot OBM_local1 .. OBM_local1 + 0x700
  297.  
  298.  
  299. Beast/OBM_local2
  300.  
  301. NAME
  302.       OBM_local2 -- Local method slot 2. (V1 Alpha)
  303.  
  304.  
  305. FUNCTION
  306.       Defines a slot OBM_local2 .. OBM_local2 + 0x1000
  307.  
  308.  
  309. BeastSystem/OBM_ADDEVENT
  310.  
  311. NAME
  312.       OBM_ADDEVENT -- Add an event. (V1 Bravo)
  313.  
  314. FUNCTION
  315.       See mth_AddEvent_BST_Application for an example.
  316.       BTA_MainObject    - af[R]
  317.         The event of this object is removed.
  318.  
  319. BeastSystem/OBM_EVENTLOOP
  320.  
  321. NAME
  322.       OBM_EVENTLOOP -- Enter the eventloop. (V1 Bravo)
  323.  
  324. FUNCTION
  325.       See mth_EventLoop_BST_Application for an example.
  326.  
  327. BeastSystem/OBM_FOREACH
  328.  
  329. NAME
  330.       OBM_FOREACH -- For each object do .... (V1 Bravo)
  331.  
  332. FUNCTION
  333.       See mth_ForEach_BeastLibrary for the general behaviour.
  334.  
  335. BeastSystem/OBM_REMEVENT
  336.  
  337. NAME
  338.       OBM_REMEVENT -- Remove event. (V1 Bravo)
  339.  
  340. FUNCTION
  341.       See mth_RemEvent_BST_Application for an example.
  342.       BTA_MainObject    - af[R]
  343.         The event of this object is removed.
  344.  
  345. MethodFlags/MTHF_BREAK
  346.  
  347. NAME
  348.       MTHF_BREAK -- (V1 Alpha)
  349.  
  350. FUNCTION
  351.       Don't execute the method, this flag is mostly used by superclasses.
  352.       (Method overriding).
  353.  
  354. MethodFlags/MTHF_DOCHILDREN
  355.  
  356. NAME
  357.       MTHF_DOCHILDREN -- (V1 Alpha)
  358.  
  359. FUNCTION
  360.       Delegate method through childern bottom up.
  361.       The method is first triggered at the 'lowest'
  362.       object in the tree, those with no children.
  363.  
  364. MethodFlags/MTHF_DOPARENTS
  365.  
  366. NAME
  367.       MTHF_DOPARENTS -- (V1 Alpha)
  368.  
  369. FUNCTION
  370.       Delegate method through the parent objects.
  371.       The method is also triggered at the parent objects
  372.       this will continue until one method routine resets this flag.
  373.  
  374. MethodFlags/MTHF_ERROR
  375.  
  376. NAME
  377.       MTHF_ERROR -- (V1 Alpha)
  378.  
  379. FUNCTION
  380.       There has occured an error, but it is not
  381.       fatal. If the object has the OBM_ERROR method
  382.       implemented this can be used to find out what went wrong.
  383.  
  384. MethodFlags/MTHF_FATALERROR
  385.  
  386. NAME
  387.       MTHF_FATALERROR -- (V1 Alpha)
  388.  
  389. FUNCTION
  390.       There has occured a fatal error. Mostly this means that the object is
  391.       instable.
  392.  
  393. MethodFlags/MTHF_PASSTOCHILD
  394.  
  395. NAME
  396.       MTHF_PASSTOCHILD -- (V1 Alpha)
  397.  
  398. FUNCTION
  399.       Delegate method through children top down.
  400.       Now the method is triggered first at the childern.
  401.       A method can reset this flag to prevent it's children being called.
  402.  
  403. MethodFlags/MTH_B52_bits
  404.  
  405. NAME
  406.       MTH_B52_bits -- (under construction)
  407.  
  408. FUNCTION
  409.       The mask of the bits which are defined by B52.
  410.  
  411. Methods/Methods
  412.  
  413. NAME
  414.       Introduction -- Method definitions. (V1 Bravo)
  415.  
  416.  
  417. FUNCTION
  418.       Local methods, these method id's may be use by classes to define their own
  419.       private methods, special care must be taken when doing so. Delegation of
  420.       these throughout the parents or children can be dangerious, this because
  421.       of BEAST is a dynamic system and therefore it is possible that several
  422.       'other' objects are inserted. And there could be a conflict because classes
  423.       have the same method id defined for other uses.
  424.       When developers are defining their own classes they can ask for a pre-
  425.       defined 'slot' of methods which they can use. Send a message to
  426.       weertj@IAEhv.nl.
  427.       Developers however are strongly recommended to use the standard BEAST methods.
  428.       In this way the classes have a similiar behaviour.
  429.  
  430.       Now the general implementation of the BEAST methods is given, please note that
  431.       this is _only_ the general description. These are the minimum demands
  432.       the method must comply to. Every class can give a different implementation
  433.       to the method as long as the general description is maintained.
  434.  
  435.  
  436. Methods/OBM_bits_FAMILY
  437.  
  438. NAME
  439.       OBM_bits_FAMILY -- The bits which defines the family to which the methods
  440.                  belong. (V1 Bravo)
  441.  
  442.  
  443. FUNCTION
  444.       OBM_type_Plain   = General methods.
  445.       OBM_type_System  = Methods defined by the BEAST system (BeastLibrary), and
  446.                    by the BEAST system classes.
  447.       OBM_type_General = Methods defined by the BEAST general classes.
  448.       OBM_type_B52       = Methods defined by B52/BEAST classes.
  449.       OBM_type_BeaVis  = Methods defined by BeaVis.
  450.       OBM_type_BFS       = Methods defined by BFS (Beast FileSystem) classes.
  451.       OBM_type_BeaMM   = Methods defined by BeaMM (Beast MultiMedia) classes.
  452.       OBM_type_BEASTAR = Methods defined by BEASTAR classes.
  453.  
  454.  
  455.